package com.lsl.abstract_factory.example2.factory;

import com.lsl.abstract_factory.example2.product.army.Army;
import com.lsl.abstract_factory.example2.product.army.ElfArmy;
import com.lsl.abstract_factory.example2.product.castle.Castle;
import com.lsl.abstract_factory.example2.product.castle.ElfCastle;
import com.lsl.abstract_factory.example2.product.king.ElfKing;
import com.lsl.abstract_factory.example2.product.king.King;

/**
 * @author Zed
 * @description
 * @date 2023/1/8 22:39
 */
public class ElfKingdomFactory implements KingdomFactory {

    @Override
    public Castle createCastle() {
        return new ElfCastle();
    }

    @Override
    public King createKing() {
        return new ElfKing();
    }

    @Override
    public Army createArmy() {
        return new ElfArmy();
    }
}
